<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>dom编程 jquery</title>
</head>
<body>
    react(mvvm框架) antd(ui组件库 业务框架)
    没有node 没有工程化
    <!-- js dom innerHTML -->
    <div id="app"></div>
    <!-- 事件 -->
    <input type="text" id="todo-input">
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
    <script>
        // dom编程
        // console.log($('#todo-input'))
        $('#todo-input')
            // addEventListener
            .on('input',function() {
                let val = $(this).val();
                $('#app').html(val);
            })
    </script>
</body>
</html>